package com.zzyl.nursing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzyl.nursing.domain.NursingProjectPlan;
import com.zzyl.nursing.domain.vo.NursingProjectPlanVO;
import com.zzyl.nursing.mapper.NursingProjectPlanMapper;
import com.zzyl.nursing.service.INursingProjectPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NursingProjectPlanServiceImpl extends ServiceImpl<NursingProjectPlanMapper, NursingProjectPlan> implements INursingProjectPlanService {

    @Autowired
    private NursingProjectPlanMapper nursingProjectPlanMapper;
    @Override
    public List<NursingProjectPlanVO> selectNursingProjectPlan(Long planId) {
        List<NursingProjectPlanVO> result = nursingProjectPlanMapper.selectNursingProjectPlan(planId);
        return result;
    }

    @Override
    public void del(Long id) {
        nursingProjectPlanMapper.del(id);
    }

    @Override
    public void removeByPlanIds(Long[] ids) {
        nursingProjectPlanMapper.removeByPlanIds(ids);
    }

}
